package com.rybbaby.tss.front.tssPackage.service.imp;

import com.rybbaby.tss.core.web.service.imp.BaseServiceImp;
import com.rybbaby.tss.front.tssPackage.dao.ITssPackageDao;
import com.rybbaby.tss.front.tssPackage.entity.TssPackage;
import com.rybbaby.tss.front.tssPackage.service.ITssPackageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author 雷春琼
 * @description 课时包表数据库操作服务实现
 * @createDate 2017-08-10 上午12:08:51
 */
@Service
@Transactional
public class TssPackageServiceImp extends BaseServiceImp<TssPackage> implements ITssPackageService {

    @Autowired
    private ITssPackageDao dao;

    /**
     * 根据状态来修改课时包信息
     *
     * @param targetDateId
     * @param isBlockUp
     * @return
     */
    @Override
    public Integer updatePackageByIsBlockUp(String targetDateId, Boolean isBlockUp) {
        return dao.updatePackageByIsBlockUp(targetDateId,isBlockUp);
    }
}
